package com.aoxin.model.activity;

import java.math.BigDecimal;
import java.util.Date;

import org.joda.time.DateTime;

import com.aoxin.util.enumerate.IsWithdraw;
/**
 *  提现记录
 * @author lop
 * @date 2018年5月7日 上午10:49:28
 */
public class SlfCash {
		//表id
		private Integer id;
	
		//用户id
		private Integer userId;
		//用户姓名
		private String userName;
		//提现金额
		private BigDecimal cashMoney;
		//提现类型
		private Integer cashType;
		//状态
		private Integer state;
		//推荐金额表id
		private String recommendMoneyId;
		//提现时间
		private Date cashDate;
		//被推荐人id
		private Integer referralsId;
		//被推荐人名字
		private String referralsName;
		
		private String cashDateStr;
		//状态名
		private String stateName;
		
		
		public String getStateName() {
			return stateName;
		}
		public void setStateName(String stateName) {
			this.stateName = stateName;
		}
		public Integer getId() {
			return id;
		}
		public void setId(Integer id) {
			this.id = id;
		}
		public String getCashDateStr() {
			return cashDateStr;
		}
		public void setCashDateStr(String cashDateStr) {
			this.cashDateStr = cashDateStr;
		}
		public String getReferralsName() {
			return referralsName;
		}
		public void setReferralsName(String referralsName) {
			this.referralsName = referralsName;
		}
		public Integer getReferralsId() {
			return referralsId;
		}
		public void setReferralsId(Integer referralsId) {
			this.referralsId = referralsId;
		}
		public Integer getUserId() {
			return userId;
		}
		public void setUserId(Integer userId) {
			this.userId = userId;
		}
		public String getUserName() {
			return userName;
		}
		public void setUserName(String userName) {
			this.userName = userName;
		}
		public BigDecimal getCashMoney() {
			return cashMoney;
		}
		public void setCashMoney(BigDecimal cashMoney) {
			this.cashMoney = cashMoney;
		}
		public Integer getCashType() {
			return cashType;
		}
		public void setCashType(Integer cashType) {
			this.cashType = cashType;
		}
		public Integer getState() {
			return state;
		}
		public void setState(Integer state) {
			this.stateName=IsWithdraw.fromId(state).getValue();
			this.state = state;
		}
	
		public String getRecommendMoneyId() {
			return recommendMoneyId;
		}
		public void setRecommendMoneyId(String recommendMoneyId) {
			this.recommendMoneyId = recommendMoneyId;
		}
		public Date getCashDate() {
			return cashDate;
		}
		public void setCashDate(Date cashDate) {
			this.cashDateStr =new DateTime(cashDate).toString("yyyy-MM-dd");
			this.cashDate = cashDate;
		}
		
	
	
}
